import xhr from './xhr/'

class integral {
  /**
   * 获取兑吧活动地址
   */
  autoLogin (data) {
    return xhr({
      url: '/duiba/autoLogin',
      body: data
    })
  }
  /**
   * 获取积分列表
   */
  getIntegralList (data) {
    return xhr({
      url: '/linkerDetail/integralList',
      body: data
    })
  }
  /**
   * 总积分
   */
  getMyTotalIntegral (data) {
    return xhr({
      url: '/linkerDetail/getMyTotalIntegral',
      body: data
    })
  }
  /**
   * 签到
   */
  insertMySign (data) {
    return xhr({
      method: 'post',
      url: '/linkerDetail/insertMySign',
      body: data
    })
  }
  /**
   * 签到记录
   */
  insertAccessRecords (data) {
    return xhr({
      method: 'post',
      url: '/linkerDetail/insertAccessRecords',
      body: data
    })
  }
  /**
   * 查询活动
   */
  getActivityInfo (data) {
    return xhr({
      url: '/linkerDetail/queryOtherActivity',
      body: data
    })
  }
}

export default new integral()